package jdbc.chapter_Jan_1_2019;

import jdbc.annotation.Column;

public class Jobs {
    @Column(name = "job_id",Pk = true)
    private String jobId;
    @Column(name = "job_title")
    private String jobTltle;
    @Column(name = "min_salary")
    private Integer minSalary;
    @Column(name = "max_salary")
    private Integer maxSalary;

    public Jobs() {
    }

    public Jobs(String jobId, String jobTltle, int minSalary, int maxSalary) {
        this.jobId = jobId;
        this.jobTltle = jobTltle;
        this.minSalary = minSalary;
        this.maxSalary = maxSalary;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getJobTltle() {
        return jobTltle;
    }

    public void setJobTltle(String jobTltle) {
        this.jobTltle = jobTltle;
    }

    public int getMinSalary() {
        return minSalary;
    }

    public void setMinSalary(int minSalary) {
        this.minSalary = minSalary;
    }

    public int getMaxSalary() {
        return maxSalary;
    }

    public void setMaxSalary(int maxSalary) {
        this.maxSalary = maxSalary;
    }

    @Override
    public String toString() {
        return "Jobs{" +
                "jobId='" + jobId + '\'' +
                ", jobTltle='" + jobTltle + '\'' +
                ", minSalary=" + minSalary +
                ", maxSalary=" + maxSalary +
                '}';
    }
}
